﻿using System;
using System.Linq;
using System.Web.ModelBinding;
using Altairis.FluffyCloud.Data;

namespace Altairis.FluffyCloud.WebCore.Pages.Users {

    public partial class Profile : DbPage {

        public User FormView_GetItem([RouteData]string userName) {
            return this.DbContext.Users.SingleOrDefault(x => x.UserName.Equals(userName, StringComparison.CurrentCultureIgnoreCase) && x.IsApproved);
        }

        protected void Page_Load(object sender, EventArgs e) {
        }
    }
}